﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="CustomerReports.aspx.cs" Inherits="CustomerReports" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>تقارير الجهات</title>
<style type="text/css">
        	.zr3 {
	background-image:url('images/button2.png');
	display:block;
	float:right;
	 padding: 0px 10px 0px 10px;
	height:21px;
	text-align:center;
	color:#fff;
	text-shadow:1px 1px 0px #003a5e;
	margin-right:2px;
	line-height:19px;
	font-weight:bold;
	text-decoration:none;
	font-family:Tahoma;
	font-size:12px;


}
.zr3:hover ,.zr3:active {
	background-image:url('images/button2.png');
	text-shadow:1px 1px 0px #003a5e;
	background-position:0px -21px;
	
}
  .stylelabel3
       {
       	color:#064c66;
	 font-weight:bold;
	 direction:rtl;
	 text-align:right;
       	}
             .tab3{
	width:815px;
 direction:rtl;
 border:1px #ccc solid;
 border-radius:5px;
 }

tr .tabbone3{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:center;
	
}
 .req3
       {
           color:Red;
       } 
.adel3{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  center;
}
.he3{
	background-color:#fff;
	padding:5px;
	font-family:Tahoma;
	font-size:14px;
	font-weight:bold;
}
        .jqmWindow {
    display: none;
    
    position: fixed;
    top: 17%;
    left: 50%;
    
    margin-left: -300px;
    width: 800px;
    
    background-color: #EEE;
    color: #333;
    border: 1px solid black;
    padding: 12px;
}

.jqmOverlay { background-color: #000; }

/* Fixed posistioning emulation for IE6
     Star selector used to hide definition from browsers other than IE6
     For valid CSS, use a conditional include instead */
* html .jqmWindow 
{
     position: absolute;
     top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}
            </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate> 
     <table width="100%" style="padding:10px;" dir="rtl">
<tr>
   
<td style="padding:5px; width:130px;" >

    

    <asp:Label ID="Label4" CssClass="stylelabel3" runat="server" Text="كلمة البحث" 
        meta:resourcekey="Label4Resource1"></asp:Label>

    

</td>
<td style="padding:5px; width:200px;">
    <asp:TextBox ID="searchfield" runat="server" CausesValidation="True" 
        style="border:1px solid black" Width="150px" 
        meta:resourcekey="searchfieldResource1"></asp:TextBox>

</td>
<td >

    
    
</td>

</tr>
<tr>
<td style="padding:5px; width:130px;">
    <asp:Label ID="Label5" CssClass="stylelabel3" runat="server" Text="موضع البحث" 
        meta:resourcekey="Label5Resource1"></asp:Label>
    </td>
<td style="padding:5px; width:200px;"> 
    <asp:DropDownList ID="DropDownList1" runat="server"
        style="border:1px solid black; " Width="150px" 
        meta:resourcekey="DropDownList1Resource1">
        <asp:ListItem Selected="True" Value="0" meta:resourcekey="ListItemResource1">الكل</asp:ListItem>
        <asp:ListItem Value="address" meta:resourcekey="ListItemResource2">العنوان</asp:ListItem>
        <asp:ListItem Value="repname" meta:resourcekey="ListItemResource3">اسم الجهة</asp:ListItem>
        <asp:ListItem Value="companyname" meta:resourcekey="ListItemResource4">اسم الشركة</asp:ListItem>
        <asp:ListItem Value="email1" meta:resourcekey="ListItemResource5">الايميل</asp:ListItem>
    </asp:DropDownList>
    </td>
<td>
    <asp:Button ID="Button2" runat="server" CssClass="zr3" 
        onclick="ImageButton1_Click" Text="إبحث" 
        meta:resourcekey="Button2Resource1" />
    
    </td>
</tr>
<tr>

<td colspan="3">
    <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" 
        Text="<%$ Resources:Resource, searchresult %>" Visible="False" 
        meta:resourcekey="Label1Resource1"></asp:Label>
    
    
    
    </td>
</tr>
</table>
            <div  align="right">
            </div>
 
 <div>
 
 <table>
 <tr>

        <td align ="left" style="padding:5px">
             <asp:Button style="float:left" ID="deselectall"  runat="server" CssClass="zr3" 
                 meta:resourceKey="all" onclick="deselectall_Click" Text="عدم اختيار الكل" 
                 ValidationGroup="care" />
             <asp:Button style="float:left"   CssClass="zr3" ID="selectall" runat="server" Text="اختر الكل " 
                onclick="selectall_Click" ValidationGroup="care" meta:resourceKey="deall" />
        </td>
        <td>
            &nbsp;</td>
 </tr>
 <tr><td colspan="2">
  <asp:SqlDataSource ID="CusSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT * FROM [companies]"></asp:SqlDataSource>
                <asp:GridView ID="GridView1" runat="server"
                    AutoGenerateColumns="False"
                    Font-Size="Large"  AllowPaging="True" 
                     onrowcreated="GridView1_RowCreated" GridLines="None" 
         EnableModelValidation="True" meta:resourcekey="GridView1Resource1"  >
                   
                  
                    <Columns>
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                            <HeaderTemplate>
                            <div dir="rtl">
                                <table class="tab3" >
                                    <tr>
                                  
                                  <td class="tabbone3"style="width:100px">
                                        
                                        <asp:Label ID="lblcname" runat="server" Text="اسم الجهة" meta:resourceKey="lblcname" />
                                            
                                        </td>
                                        <td class="tabbone3"style="width:100px">
                                        
                                        <asp:Label ID="Label4" runat="server" Text="العنوان" meta:resourceKey="lbladdress" />
                                            
                                        </td>
                                   <td class="tabbone3" style="width:100px">
                                     
                                        <asp:Label ID="lblcity" runat="server" Text="المدينة" meta:resourceKey="lblcity" />
                                            
                                        </td>
                                        <td class="tabbone3"style="width:50px">
                                      
                                        <asp:Label ID="lbltype" runat="server" Text="نوع الجهة" meta:resourceKey="lbltype" />
                                            
                                        </td>
                                        <td class="tabbone3"style="width:100px">
                                      
                                        <asp:Label ID="lblphone" runat="server" Text="الهاتف" meta:resourceKey="lblphone" />
                                            
                                        </td>
                                  
                                        <td class="tabbone3"style="width:45px">
                                     <asp:Label ID="lblshow" runat="server" Text="اختر" meta:resourceKey="lblshow" />
                                        </td>
                                    </tr>
                                </table>
                                </div>
                            </HeaderTemplate>
                            <ItemTemplate>
                              
                                <asp:Panel ID="Panel9" runat="server" Direction="RightToLeft" 
                                    meta:resourcekey="Panel9Resource1">
                                    <table  class="tab3">
                                        <tr>
                                     <td class="adel3" style="width:100px">
                                                <asp:Label  ID="Label5" runat="server" 
                                                    Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("company"))) %>' 
                                                    meta:resourcekey="Label5Resource2" />
                                            </td>
                                           <td class="adel3" style="width:100px">
                                                <asp:Label  ID="Label6" runat="server" 
                                                    Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("address"))) %>' 
                                                    meta:resourcekey="Label6Resource1" />
                                            </td>
                                            <td class="adel3"style="width:100px">
                                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("city") %>' 
                                                    meta:resourcekey="Label3Resource1" />
                                            </td>
                                            <td class="adel3"style="width:50px">
                                                <asp:Label ID="Label2" runat="server" 
                                                    Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("organization"))) %>' 
                                                    meta:resourcekey="Label2Resource1" />
                                            </td>

                                       <td class="adel3" style="width:100px">
                                                <asp:Label  ID="Label88" runat="server" 
                                                    Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("tele1"))) %>' 
                                                    meta:resourcekey="Label88Resource1" />
                                            </td>
                                         <td class="adel3" style="width:45px">
                                            <asp:CheckBox runat="server" ID="chkAdd"  
                                                 ToolTip='<%# DataBinder.Eval(Container.DataItem, "id") %>' 
                                                 meta:resourcekey="chkAddResource1"></asp:CheckBox>  
                                            </td>
                                            
                                        </tr>
                                    </table>
                                  
                                </asp:Panel>
                              
                            </ItemTemplate>
                        </asp:TemplateField>
                      
                    </Columns>
                </asp:GridView>
                </td></tr>
                <tr>
                <td>
                    <asp:RadioButtonList ID="RadioButtonList1" 
                        style="float:right;margin-right:10px" runat="server" 
                        RepeatDirection="Horizontal" TextAlign="Left" 
                        meta:resourcekey="RadioButtonList1Resource1">
                        <asp:ListItem Text="لا  " Value="0" meta:resourcekey="ListItemResource6"></asp:ListItem>
                        <asp:ListItem Selected="True" Text="نعم " Value="1" 
                            meta:resourcekey="ListItemResource7"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                 <td>
                     <asp:Label style="float:left" ID="options" runat="server" CssClass="Lablcss" 
                         meta:resourceKey="options" Text="ارفاق الاشتراكات الحالية"></asp:Label>
                </td>
                </tr>
                <tr>
                <td colspan="2" align="center"> 
                <asp:Button CssClass="zr3" ID="genreport" runat="server" Text="انشىء التقرير" 
            onclick="genreport_Click" meta:resourceKey="genreport" />
                </td>
                </tr>
                </table>
 
 </div>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="genreport" />
</Triggers>
     </asp:UpdatePanel>
</asp:Content>

